package org.example.controller;

import org.example.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RController {

/*    @Autowired
    @Qualifier("ConfStudent")
    private Student studentIoc;
    @RequestMapping("/ioc")
    public Student ioc(){

        return studentIoc;
    }
    @Autowired
    @Qualifier("AStudent")
    private Student astudentIoc;
    @RequestMapping("/aioc")

    public Student aioc(){

        return astudentIoc;
    }*/


    @RequestMapping("/s/score")
    public String score(){
        return "访问学生/score成功";
    }
    @RequestMapping("/t/course")
    public String course(){
        return "访问教师/course成功";
    }
    @RequestMapping("/a/port")
    public String port(){
        return "访问管理员/port/成功";
    }
   /* @RequestMapping("/sdfg")
    public String sdfg(){
        return "访问普通网址sdfg成功";
    }*/
}
